setFactory2

open fun setFactory2(@NonNull inflater: @NonNull LayoutInflater, factory: @NonNull LayoutInflater.Factory2)(source)

Attach a custom LayoutInflater.Factory2 for creating views while using this LayoutInflater. This must not be null, and can only be set once; after setting, you can not change the factory.

See also